<%@ page contentType="text/html; charset=gb2312" language="java"
	import="java.sql.*" errorPage=""%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link href="<%=basePath %>/web/css/OpenNiceHeader.css" type="text/css"
	rel="stylesheet" />
<script src="<%=basePath %>/jQuery/jquery-1.4.2.js"
	type="text/javascript" language="javascript"></script>
<script src="<%=basePath %>/jQuery/OpenNiceLogin.js"
	type="text/javascript" language="javascript"></script>
<!--  <div id="header">-->
<div class="grid">
	<div class="logo">
		<a class="head-logo-linkarea" href="<%=basePath %>index.jsp"></a>
	</div>
	
	<div class="login-grid">
	 
		<div class="rgt">
			<div class="lgn-hd">
				<div class="lgn-cnr-tl png" style="background-position: 0pt 0pt;">
					<a id="register-link" class="register-area" href="<%=basePath %>web/register.jsp">Register</a>
				</div>
				<div class="lgn-btn" style="background-position: 0pt top;"></div>
			</div>
			



			<div class="lgn-wrp" style="display: none;">
				<div class="lgn-top">
				</div>
				<div class="lgn-mdl">
					<form method="post" action="<%=basePath %>web/login" name="login_form">
						<input class="lgn_input" type="text"
							onfocus="javascript: if(this.value=='Username') {this.value='';};"
							onblur="javascript: if(this.value=='') { this.value='Username';}"
							value="Username" name="userName" maxlength="150">
						<p></p>
						<input class="lgn_input" type="password"
							onfocus="javascript: if(this.value=='Password') {this.value='';};"
							onblur="javascript: if(this.value=='') { this.value='Password';}"
							value="Password" name="Password" maxlength="150">
							
						<table style="vertical-align: top">
							<tbody>
								<tr>
									<td style="vertical-align: top">
										<input class="lgn_btn_sbmt" type="submit" value="Login">
									</td>
									<td style="vertical-align: top">
										<input id="loginpermanent" type="checkbox" style=""
											tabindex="3" name="savelogin">
										<label class="lgn-text" for="loginpermanent">
											Remember me
										</label>
										<div>
											<a href="register.jsp">Register Account?</a><span
												style="color: black;">&nbsp; | &nbsp;</span>
											<a class="lgn-fgt" href="/users/forgot.php">Forgot
												details?</a>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
				<div class="lgn-btm">
				</div>
			</div>
			<div class=""></div>
		</div>
	</div>
    <s:if test="#attr.LoginUser!=null">
		<span class="headText">welcome<a  href="<%=basePath %>/user/home"> ${LoginUser.UName } </a>to Photosnuk platform <a class="register-area" href="<%=basePath %>web/unLoginUser">Logout</a>	 </span>
	</s:if>
</div>
<!-- </div>-->
